package com.ugoodtech.mdcc.web.dto;


import com.ugoodtech.mdcc.core.domain.QuestionSection;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * Copyright © 2013 All Rights Reserved, Ugood Technology, Inc.
 */
@ApiModel("章节数据")
public class QuestionSectionResponse {
    @ApiModelProperty("编号")
    private Long sectionId;
    @ApiModelProperty("大题名称")
    private String name;
    @ApiModelProperty("包含小题数量")
    private int groupNum=0;
    @ApiModelProperty("时间")
    private String creationTime;


    public QuestionSectionResponse(QuestionSection questionSection) {
        this.sectionId=questionSection.getId();
        this.creationTime=questionSection.getCreationTimeStr();
        this.name=questionSection.getName();
    }

    public Long getSectionId() {
        return sectionId;
    }

    public void setSectionId(Long sectionId) {
        this.sectionId = sectionId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getGroupNum() {
        return groupNum;
    }

    public void setGroupNum(int groupNum) {
        this.groupNum = groupNum;
    }

    public String getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(String creationTime) {
        this.creationTime = creationTime;
    }
}
